package com.sasis.model;
// Generated 2007-4-5 17:22:49 by Hibernate Tools 3.1.0.beta4



/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="WT_USER"
 *     
 */

public class WtUser extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String wtUserid;
    private String bwtUserid;


    // Constructors

    /** default constructor */
    public WtUser() {
    }

    
    /** full constructor */
    public WtUser(String bwtUserid) {
        this.bwtUserid = bwtUserid;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.String"
     *             column="WT_USERID"
     *         
     */

    public String getWtUserid() {
        return this.wtUserid;
    }
    
    public void setWtUserid(String wtUserid) {
        this.wtUserid = wtUserid;
    }
    /**       
     *      *            @hibernate.property
     *             column="BWT_USERID"
     *             length="50"
     *         
     */

    public String getBwtUserid() {
        return this.bwtUserid;
    }
    
    public void setBwtUserid(String bwtUserid) {
        this.bwtUserid = bwtUserid;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("bwtUserid").append("='").append(getBwtUserid()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof WtUser) ) return false;
		 WtUser castOther = ( WtUser ) other; 
         
		 return ( (this.getWtUserid()==castOther.getWtUserid()) || ( this.getWtUserid()!=null && castOther.getWtUserid()!=null && this.getWtUserid().equals(castOther.getWtUserid()) ) )
 && ( (this.getBwtUserid()==castOther.getBwtUserid()) || ( this.getBwtUserid()!=null && castOther.getBwtUserid()!=null && this.getBwtUserid().equals(castOther.getBwtUserid()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getWtUserid() == null ? 0 : this.getWtUserid().hashCode() );
         result = 37 * result + ( getBwtUserid() == null ? 0 : this.getBwtUserid().hashCode() );
         return result;
   }   





}
